PACKAGECONFIG:append = " r600 gallium-llvm \ 
	${@bb.utils.contains('MACHINE_FEATURES', 'x100', 'glvnd', '', d)} \
"
PROVIDES += "${@bb.utils.contains('PACKAGECONFIG', 'glvnd', 'virtual/libglx', '', d)} "

PACKAGECONFIG[glvnd] = "-Dglvnd=true, -Dglvnd=false, libglvnd"
PACKAGES += " libglx-mesa libglx-mesa-dev"

python () {
    d.setVar("GALLIUMDRIVERS", "swrast,r300,r600,radeonsi")
}
do_install:append () {
     rm -f ${D}${libdir}/libGLX*
}
